package lang;

public enum MxEnum {
    Mon, Tue, Wed, Thu, Fri, Sat, Sun;


    public static void main(String[] args) {
        MxBean bean = new MxBean();
        bean.setMxEnum(MxEnum.Mon);
        System.out.println(MxEnum.Mon.equals(bean.getMxEnum()));
        System.out.println(MxEnum.Mon == bean.getMxEnum());

        System.out.println(MxEnum.valueOf("Mon") == MxEnum.Mon);
        System.out.println(MxEnum.Mon.name());
    }
}


class MxBean {
    private MxEnum mxEnum;

    public MxEnum getMxEnum() {
        return mxEnum;
    }

    public void setMxEnum(MxEnum mxEnum) {
        this.mxEnum = mxEnum;
    }
}
